package com.example.lt.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author 涛Tao
 * @Date: 2024/05/29/9:09
 * version 1.0 注释：用户类
 **/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "consumer") // 对应数据库中的consumer表
public class Consumer implements Serializable {
    @TableId(type = IdType.AUTO) // id自增
    private Integer id;

    private String username;

    private String password;

    private Byte sex;

    private String phoneNum;

    @TableField(value = "email")
    private String email;

    private Date birth;

    private String introduction;

    private String location;

    private String avator;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}
